package com.example.springboot.common.constants;


//系统用到的常量
public class Constants {
    //常用提示
    public static final String USER_LOGIN_FALSE = "用户名或密码错误";
    public static final String CODE_LOGIN_FALSE = "验证码错误";
    public static final String USER_ISEMPTY = "用户不存在";
    public static final String USER_LOGIN_SUCCESS = "登录成功";
    public static final String USER_LOGIN_ERROR = "登录失败";
    public static final String ROLE_DELETE_ERROR = "，分配了此角色，该角色无法删除";
    public static final String ROLE_UPDATE_ERROR = "，分配了此角色，该角色无法编辑";
    public static final String ERROR = "操作失败";
    public static final String SUCCESS = "操作成功";

    //用户存储redis目录
    public static final String USER_REDIS = "Op_Sys:User:";
    //验证码缓存redis目录
    public static final String CODE_REDIS = "Op_Sys:Code:";
    //令牌前缀
    public static final String TOKEN_PREFIX = "Bearer ";
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER = "login_user";
    //用户存储时间
    public static final Integer USER_REDIS_OVERTIME = 10800;
    //验证码存储时间
    public static final Integer CODE_REDIS_OVERTIME = 300;
    //成功code
    public static final String CODE_SUCCESS = "200";
    /**
     * 未授权
     */
    public static final String UNAUTHORIZED = "401";

    /**
     * 访问受限
     */
    public static final String FORBIDDEN = "403";
    //失败code
    public static final String COED_ERROR = "500";

}
